package com.brave.service.repository;

import com.brave.service.entity.MCServiceDictTypeEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.repository.query.Param;

import java.util.List;


public interface ServiceDictTypeRepository extends JpaRepository<MCServiceDictTypeEntity, Long>
{
    
    
    List<MCServiceDictTypeEntity> findByLevelOrderByTypeSortAsc(@Param("level") int level);


    List<MCServiceDictTypeEntity> findByTypePidOrderByTypeSortAsc(@Param("typePid") Long typePid);
    
}